package main

import (
	"fmt"
	"net"
	"net/rpc/jsonrpc"
)

func main() {

	conn, err := net.Dial("tcp", ":1234")

	if  err != nil{

		print(err)

	}

	client := jsonrpc.NewClient(conn)

	var res float64

	err = client.Call("DemoService.Div", map[string]int{"A": 1, "B": 2}, &res)


	if  err != nil{

		print(err)

	}

	fmt.Println(res)
}
